<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>数字车辆管理系统</title>
	<script src="${basePath }charts/AC_RunActiveContent.js" language="javascript"></script>
	<script language="JavaScript" type="text/javascript">
		var requiredMajorVersion = 10;
		var requiredMinorVersion = 0;
		var requiredRevision = 45;
	</script>
</head>
  
<body>
  <table>
  	<tr>
  		<td><a href="${basePath}test!addVehicle.action">新增</a></td>
  		<td><a href="${basePath}test!updateVehicle.action">更新</a></td>
  		<td><a href="${basePath}test!removeVehicle.action">删除</a></td>
  		<td><a href="${basePath}test!removeRelationVehicle.action">删除关系</a></td>
  	</tr>
  	<tr>
  		<td colspan="4"><a href="${basePath}test.action">AOP before测试</a></td>
  	</tr>
  </table>
  <div>
  	<script language="JavaScript" type="text/javascript">
		var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
		if(hasRightVersion) { 
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,45,2',
				'width', '700',
				'height', '550',
				'scale', 'noScale',
				'salign', 'TL',
				'bgcolor', '#ffffff',
				'wmode', 'opaque',
				'movie', '${basePath }charts/charts',
				'src', '${basePath }charts/charts',
				'FlashVars', 'library_path=${basePath }charts/charts_library&xml_source=${basePath }sample.xml', 
				'id', 'my_chart',
				'name', 'my_chart',
				'menu', 'true',
				'allowFullScreen', 'true',
				//'allowScriptAccess','sameDomain',
				'allowScriptAccess','allways',
				'quality', 'high',
				'align', 'middle',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'play', 'true',
				'devicefont', 'false'
				); 
		} else { 
			var alternateContent = 'This content requires the Adobe Flash Player. '
			+ '<u><a href=http://www.macromedia.com/go/getflash/>Get Flash</a></u>.';
			document.write(alternateContent); 
		}
	</script>
	<noscript>
		<P>This content requires JavaScript.</P>
	</noscript>
  </div>
</body>
</html>
